<?php
namespace Admin\Model;
use Think\Model\ViewModel;

class RefundViewModel extends ViewModel {
    public $viewFields = array(
    	'refund'=>array('id','sequence','code_code'=>'code','date','number','receive','sender','status','del'),
    	'code'=>array('goods_id','depot_id','supplier_id','price','_on'=>'refund.code_code=code.code'), 
    	'goods'=>array('name'=>'goods_name','xinghao','unit','guige','_on'=>'code.goods_id=goods.id'),
    	'depot'=>array('name'=>'depot_name','_on'=>'code.depot_id=depot.id'), 
    	'supplier'=>array('name'=>'supplier_name', '_on'=>'code.supplier_id=supplier.id')
   	); 
}